package com.yeban.javase.day17.test.test4;

import java.util.concurrent.TimeUnit;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/31
 */
public class MyRunnable implements Runnable{
    @Override
    public void run() {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("--->MyRunnable" + Thread.currentThread().getName());
    }
}
